#from gameobjects import *
from ship import Ship
from weapons import *
from player import Player

class GameObjectFactory:
    def __init__(self,game_engine):
        self.game_engine = game_engine
        self.go_dict = {'Shot':Shot,'ShotBomb':ShotBomb,'ClusterBomb':ClusterBomb,'Mine':Mine,'ProxyMine':ProxyMine,'Missile':Missile,'Ship':Ship,'Player':Player }
    def getGameObject(self,go_type,args,key_args={}):
        go = apply((self.go_dict[go_type]),(self.game_engine,)+args, key_args)
        return go

